import { App, defineComponent, PropType, Plugin } from 'vue'
const propsData = {
	columns: {
		required: true,
		type: Array as PropType<Array<F.TableColumns[]>>,
		default() {
			return []
		},
	},
}
const FTableModel = defineComponent({
	name: 'f-tableModel',
	props: propsData,
	setup(props) {
		return () => (
			<>
				<r-table
					columns={props.columns}
					tableKey="saleForecastTable"
					rowKey="id"
					v-slots={{}}
					dataSource={[]}
					scroll={{ x: 'max-content' }}
				/>
			</>
		)
	},
})
FTableModel.install = function (app: App) {
	app.component(FTableModel.name, FTableModel)
	return app
}
export default FTableModel as typeof FTableModel & Plugin
